package com.wuyan.web.base.entity;

import javax.persistence.*;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Builder;

/**
 * 基本配置
 * 
 * @author wuyan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PubConfig {

    /**
     * ID int(11) unsigned
     */
    private Integer id;

    /**
     * 类别 varchar(32)
     */
    private String type;

    /**
     * 键 varchar(32)
     */
    private String cfgKey;

    /**
     * 值 varchar(255)
     */
    private String cfgValue;

    /**
     * 是否可修改: 允许(1), 不允许(0) tinyint(1) unsigned
     */
    private Integer cfgModify;

    /**
     * 简要说明 varchar(20)
     */
    private String remark;

    /**
     * 创建时间 timestamp
     */
    private LocalDateTime createTime;

}
